
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>07Length</title>
	<meta name="author" content="Stark" />
	<!-- Date: 2018-10-18 -->
	<script type="text/javascript">
		 function fn1() {
		 	
		 }
		 
		 function fn2(num1,num2) {
		 	
		 } 
		 
		 function fn3(num1) {
		 	
		 }
		 
		 // 函数的length就表示该函数所期望的参数值
		 alert(fn1.length);
		 alert(fn2.length);
		 alert(fn3.length);
	</script>
</head>
<body">
	<div id="person"></div>
</body>
</html>

